#pragma once
#include <string>
#include <map>
#include "iltdrawprim.h"
class tex_mgr
{
public:
	static tex_mgr& single();
	~tex_mgr(void);
	HTEXTURE get_tex(int id);
	HTEXTURE    get_tex(std::string name);
	int  get_tex_nums();

private:
	tex_mgr(void);
	std::string m_tex_file;
	std::string m_page_name;
	int m_size;
	std::map<std::string ,int> m_texs;
	std::map<int,HTEXTURE> m_texs_value;
	std::map<int,HTEXTURE>::iterator m_texs_value_it;
	HTEXTURE temphtex;

};
